package com.arron.facade;
//饿汉式单例模式
public class DVDPlayer {
    private static final DVDPlayer instance =new DVDPlayer();

    private DVDPlayer() {
    }

    public static DVDPlayer getInstance(){
        return instance;
    }

    public void on(){
        System.out.println("DVD on...");
    }

    public void off(){
        System.out.println("DVD off...");
    }
    public void play(){
        System.out.println("DVD is playing...");
    }
    public void pause(){
        System.out.println("DVD pause...");
    }
}
